package com.baomidou.springwind.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 网络节点
 *
 * @author luox
 */
@TableName(value = "glc_network_node")
public class NetworkNode implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id; //主键

    @TableField(value = "batch_Id")
    private Long batchId; //批次号

    @TableField(value = "node_name")
    private String nodeName; //节点名称

    @TableField(value = "node_type")
    private Integer nodeType; //节点类型

    @TableField(value = "coordinate_x")
    private BigDecimal coordinateX; //经度

    @TableField(value = "coordinate_y")
    private BigDecimal coordinateY; //纬度

    @TableField(value = "amount")
    private BigDecimal amount; //量

    @TableField(value = "operator_id")
    private Long operatorId;//操作人

    @TableField(value = "create_time")
    private Date createTime; //创建日期

    @TableField(exist = false)
    private String nodeTypeDesc; //节点类型描述

    @TableField(exist = false)
    private String batchName; //批次名称

    @TableField(exist = false)
    private double shelf; //对应料架数量

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public Integer getNodeType() {
        return nodeType;
    }

    public void setNodeType(Integer nodeType) {
        this.nodeType = nodeType;
    }

    public BigDecimal getCoordinateX() {
        return coordinateX;
    }

    public void setCoordinateX(BigDecimal coordinateX) {
        this.coordinateX = coordinateX;
    }

    public BigDecimal getCoordinateY() {
        return coordinateY;
    }

    public void setCoordinateY(BigDecimal coordinateY) {
        this.coordinateY = coordinateY;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getNodeTypeDesc() {
        return nodeTypeDesc;
    }

    public void setNodeTypeDesc(String nodeTypeDesc) {
        this.nodeTypeDesc = nodeTypeDesc;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBatchName() {
        return batchName;
    }

    public void setBatchName(String batchName) {
        this.batchName = batchName;
    }

    public double getShelf() {
        return shelf;
    }

    public void setShelf(double shelf) {
        this.shelf = shelf;
    }

    @Override
    public String toString() {
        return "NetworkNode{" +
                "id=" + id +
                ", batchId=" + batchId +
                ", nodeName='" + nodeName + '\'' +
                ", nodeType=" + nodeType +
                ", coordinateX=" + coordinateX +
                ", coordinateY=" + coordinateY +
                ", amount=" + amount +
                ", operatorId=" + operatorId +
                ", createTime=" + createTime +
                ", nodeTypeDesc='" + nodeTypeDesc + '\'' +
                ", batchName='" + batchName + '\'' +
                '}';
    }
}
